package ptij.verifier.test.grammar;

import ptolemy.actor.*;
import ptolemy.kernel.*;
import ptolemy.kernel.util.*;

// Teste de while
public class While2 extends AtomicActor {

   public While2(CompositeEntity container, String name) throws
           NameDuplicationException, IllegalActionException {
       super(container, name);
   }

   public void fire() throws IllegalActionException {   
       int a = 10;
       int i = 0;
       while(i < a) {
          i++;
       }
       
       int b = 10 * a;
       while(true) {
           int j = 12;
	   while(b < i * 23) {
	       System.out.println("oi");
	       b++;
	   }
       }
   }

}
